//
//  SelectedColorCell.m
//  New_Runway
//
//  Created by mack on 2018/2/3.
//  Copyright © 2018年 NelsonJ. All rights reserved.
//

#import "SelectedColorCell.h"

@implementation SelectedColorCell
-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self addAllViews];
    }
    return self;
    
}

-(void)addAllViews{
    self.ColorIamge = [[UIImageView alloc] init];
    self.ColorIamge.layer.masksToBounds = YES;
    [self addSubview:self.ColorIamge];
    kSelfWeak;
    [weakSelf.ColorIamge mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.equalTo(weakSelf);
        make.top.equalTo(weakSelf).mas_offset(10);
        make.height.width.mas_offset(40);
    }];
    self.ColorIamge.layer.cornerRadius = 20;
    self.ColorIamge.backgroundColor = kColorRed();
    
    self.titleL = [[UILabel alloc] init];
    self.titleL.textColor = MAIN_FONT_COLOR();
    self.titleL.font = kFontSize(13);
    [self addSubview:self.titleL];
    [weakSelf.titleL mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.equalTo(weakSelf.ColorIamge);
        make.top.equalTo(weakSelf.ColorIamge.mas_bottom).mas_offset(8);
    }];
    
//    self.titleL.text = @"红色";

}
@end
